package com.tang.lts.core.nio.codec;

import com.tang.lts.core.nio.channel.NioChannel;

import java.nio.ByteBuffer;
import java.util.List;

/**
 * @author Tang
 * @classname CodecFactory
 * @description [  ]
 * @date 2022/5/12 23:32
 */
public class CodecFactory {

    public static Encoder encoder = new Encoder(){

        @Override
        public ByteBuffer encode(NioChannel channel, Object msg) {
            return null;
        }
    };

    public static Decoder decoder = new Decoder(){

        @Override
        public List<Object> decoder(NioChannel channel, ByteBuffer in) throws Exception {
            return null;
        }
    };

}